const app = require('../app');
const server = app.listen();
const request = require('supertest').agent(server);
require('should');

let list;
describe('Get list', function() {
  after(function() {
    server.close();
  });

  it('should get a list', function(done) {
    request
      .get('/list')
      .expect(200)
      .end(
        function(err, res) {
          list = res.body;
          console.log(list);
          list.should.be.String //.Object; // .String; // .Number; //.Array;

          done(err);
        }
      );
  });
});
